package com.lovly.api;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Arrays;
import java.util.List;

/**
 * Created by lovly on 2018/10/18.
 */
@ConfigurationProperties("com.lovly")
@Data
@Accessors(chain = true)
//@Builder(toBuilder = true)
public class CodeProperties {


    /**
     * 字体
     */
    private  String font_desc = "微软雅黑";

    /**
     * 验证码地址
     */
    private   String basePath =  "/static/imageCode/imageCode.txt";

    /**
     * 图片地址
     */
    private   String basePathBackground = "/static/imageCodeBackground";

    /**
     * session key
     */
    public   String imgCode = "IMGCODE";

    /**
     * 误差偏移值
     */
    private  int evalue = 0;

    /**
     * 字符打乱循环次数
     */
    private  int insanity = 100;

    /**
     * 汉字长度
     */
    public   int codeLength = 4;

    /**
     * 设置字体
     */
    private   List<String>  charsets = Arrays.asList("宋体","微软雅黑","黑体");





}
